package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.AccountCriteria;
import com.leo.ibatis.demo.domain.Account;

public interface AccountDao {

	void insert(Account account) throws DataAccessException;

	int update(Account account) throws DataAccessException;

	int delete(String userid) throws DataAccessException;

	Account select(String userid) throws DataAccessException;

	List<Account> list(AccountCriteria accountCriteria) throws DataAccessException;
	
	List<Account> listOnPage(AccountCriteria accountCriteria) throws DataAccessException;
	
	int count(AccountCriteria accountCriteria) throws DataAccessException;

}
